#include "mainwindow.h"

#include <QApplication>

#include <QTimer>

//1024*600
#include <QDebug>
#include <QFileInfoList>
#include <QDir>
#include <QFile>

void copy(QString file)
{
    if(!QFile::exists(file))
    {
        QFile f(":/res/" + file);
        f.copy(file);
    }

    if(file.contains(".ko"))
    {
        std::string cmd = "insmod " + file.toStdString();
        system(cmd.c_str());
    }
}

int main(int argc, char *argv[])
{

    QApplication a(argc, argv);

    copy("temp_dev.ko");
    copy("led_drv.ko");

    MainWindow w;
    w.show();


    return a.exec();
}




